package entity

import (
	"xr-game-server/core/constants/db"
	"xr-game-server/core/migrate"
)

const (
	TbCMSUser db.TbName = "cms_users"
)

// 列名
const (
	CMSUserName db.TbCol = "name"
)

type CMSUser struct {
	migrate.OneModel
	Name   string `gorm:"comment:名称" json:"namedao"`
	Pwd    string `gorm:"comment:密码" json:"pwd"`
	Status uint8  `gorm:"default:0;comment:状态" json:"status"`
}

func InitCMSUser() {
	migrate.AutoMigrate(&CMSUser{})
}
